import { defineFakeRoute } from "vite-plugin-fake-server/client";
export default defineFakeRoute([
  {
    url: "/product/gift",
    method: "post",
    response: () => {
      return {
        result: {
          data: [
            {
              goodsid: 1,
              name: "高级保温杯",
              desc: "24小时长效保温，让您随时享受热饮。",
              point: "500",
              photo:
                "https://img7.file.cache.docer.com/storage/official/file/2024/04/12/ea0f2093451ffc2584e0e4e0e8932e00.svg",
              type: "快递",
              inventory: "100",
              enable: true
            },
            {
              goodsid: 2,
              name: "智能手环",
              desc: "全天候监测您的健康状态，智能提醒。",
              point: "1200",
              photo:
                "https://docer-files.wpscdn.cn/storage/official/file/2024/04/23/75615744a501e744cb39d99dc2db2ac7.svg",
              type: "快递",
              inventory: "50",
              enable: true
            },
            {
              goodsid: 3,
              name: "蓝牙耳机",
              desc: "无线束缚，享受纯净音质。",
              point: "800",
              photo:
                "https://docer-files.wpscdn.cn/storage/official/file/2024/04/23/75615744a501e744cb39d99dc2db2ac7.svg",
              type: "自提",
              inventory: "80",
              enable: true
            },
            {
              goodsid: 4,
              name: "多功能料理机",
              desc: "轻松制作各种美食，厨房好帮手。",
              point: "2000",
              photo:
                "https://docer-files.wpscdn.cn/storage/official/file/2024/04/23/75615744a501e744cb39d99dc2db2ac7.svg",
              type: "快递",
              inventory: "30",
              enable: true
            },
            {
              goodsid: 5,
              name: "智能手表",
              desc: "时尚与科技的完美结合，智能生活新体验。",
              point: "1500",
              photo:
                "https://docer-files.wpscdn.cn/storage/official/file/2024/04/23/75615744a501e744cb39d99dc2db2ac7.svg",
              type: "自提",
              inventory: "20",
              enable: true
            }
          ],
          total: 5
        }
      };
    }
  }
]);
